#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int i, j;
	int arr[4][4] = {0};
	for (i = 0; i < 4; i++)
	{
		arr[i][0] = 1;
	}
	for (i = 1; i < 4; i++)
	{
		for (j = 1; j < 4; j++)
		{
			arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j ];
		}
	}
	for (i = 0; i < 4; i++)
	{
		for (j = 0; j < 4; j++)
		{
			if (arr[i][j] != 0)
				printf("%d ", arr[i][j]);
			else
				printf("  ");
		}
		printf("\n");
	}
	return 0;
}